package ru.papergames.battleserver.network.serverpackets.webserver;

/**
 * @author: atroshanin
 * Date: 22.05.2010
 * Time: 17:54:37
 */
public class BattleCreateFailed extends WebServerServerPacket {

    private int battleOrderId;

    public BattleCreateFailed(int battleOrderId) {
        System.out.println("BattleCreateFailed.BattleCreateFailed battleOrderId: " + battleOrderId);
        this.battleOrderId = battleOrderId;
    }

    @Override
    protected void writePacketId() {
        System.out.println("BattleCreateFailed.writePacketId battleOrderId: " + battleOrderId);
        writeC(BATTLE_CREATE_FAILED_PACKET_ID);
    }

    @Override
    protected void writePacketData() {
        System.out.println("BattleCreateFailed.writePacketData battleOrderId: " + battleOrderId);
        writeD(battleOrderId);
    }

    @Override
    public String getType() {
        return "BattleCreateFailed";
    }
}
